import request from '@/utils/request'

export default{
    // 1. 查询全部订单信息
    getListOrder(current,limit,orderQuery){
        return request({
            url: `/eduorder/orderAdmin/pageOrderCondition/${current}/${limit}`,
            method: 'post',
            data: orderQuery
          })
    },
    // 2. 根据id查询订单信息
    getOrderById(id){
        return request({
            url: `/eduorder/orderAdmin/getOrderById/${id}`,
            method: 'get',
          })
    },
    // 3. 根据id删除订单
    deleteOrderById(id){
        return request({
            url: `/eduorder/orderAdmin/deleteByOrderNo/${id}`,
            method: 'delete',
          })
    },
}